package cn.model;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Map;

/**
 * Created by root on 17-1-5.
 */
public class ApuConfig implements Serializable {
    public void setApuCfg(Map<ApuType, ApuNums> apuCfg) {
        this.apuCfg = apuCfg;
    }

    public Map<ApuType, ApuNums> getApuCfg() {
        return apuCfg;
    }

    public void setVersionid(int version) {
        this.versionid = version;
    }

    public int getVersionid() {
        return versionid;
    }

    public enum ApuType {
        egrant, ehost, esystemuser, esensitivequery, esensitivesqlgroup, esensitivetables, edbschem, edbuser, equery, esqlgroup, eip, eprograme, etableoperate
    }

    @NotNull(message = "apu标示空了")
    public Integer versionid;
    @NotEmpty(message = "apuCfg空了")
    public Map<ApuType, ApuNums> apuCfg; //key-APUTYPE
    public static final long serialVersionUID = -5355233755938841155L;
}
